package com.hefeng.service;


import com.hefeng.domain.Unit;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UnitService {
    //新增
    int insertUnit(Unit unit);

    //查询
    List<Unit> selestlist(Unit unit);
    //查询录条数
    @Select("select count(*) from gy_unit")
    Integer selectTotal();

    //编写动态SQL实现分页查询+条件查询
    //查询满足条件的某一页用户
    List<Unit> selectPageWithParam(Integer startIdx, Integer size, String unitCode, String unitCreditCode, String unitDetachmentName);

    //查询满足条件的所有用户数
    int selectTotalWithParam(String unitCode, String unitCreditCode, String unitDetachmentName);




}
